﻿using System;
using System.Collections.Generic;
using System.Text;

namespace ConsoleApp1
{
    class Teacher:Person
    {

        private string title;
        private int wageno;

        public string Title { get; set; }

        public int Wageno { get; set; }
        public Teacher(string id, string name, string sex, string cardid, int tel, string title, int wageno)
        {
            this.Id = id;
            this.Name = name;
            this.Sex = sex;
            this.CardId = cardid;
            this.Tel = tel;
            this.Title = title;
            this.Wageno = wageno;

        }
        public void Write()
        {

            //Console.WriteLine("请输入ID");
            //this.Id = Console.ReadLine();
            //Console.WriteLine("请输入姓名");
            //this.Name = Console.ReadLine();
            //Console.WriteLine("请输入性别");
            //this.Sex = Console.ReadLine();
            //Console.WriteLine("请输入身份证号");
            //this.CardId = Console.ReadLine();
            //Console.WriteLine("请输入你的手机号码");
            //this.Tel = int.Parse(Console.ReadLine());
            //Console.WriteLine("请输入你的职称");
            //this.Title = Console.ReadLine();
            //Console.WriteLine("请输入你的工资号");
            //this.Wageno = int.Parse(Console.ReadLine());

            Console.WriteLine("你的ID是{0}，姓名是{1}，性别是{2},身份证号是{3}，手机号码是{4}，职称是{5}，工资号是{6}", this.Id, this.Name, this.Sex, this.CardId, this.Tel, this.Title, this.Wageno);
        }
    }
}
